import request from '@/utils/request'

export function getList(type, status) {
  return request({
    url: `/wx/kd/wxapp/entrance/list`,
    method: 'get',
    params: { type, status }
  })
}

export function addEntrance(data) {
  return request({
    url: '/wx/kd/wxapp/entrance/add',
    method: 'PUT',
    data: data
  })
}

export function updateEntrance(data) {
  return request({
    url: '/wx/kd/wxapp/entrance/update',
    method: 'post',
    data: data
  })
}

export function changeStatus(data) {
  return request({
    url: '/wx/kd/wxapp/entrance/change_status',
    method: 'post',
    data: data
  })
}

